<template>
  <div class="mixin">
    <m-header modile-title="vue混入(Mixin)的使用" go-back="true"></m-header>
  </div>
</template>

<script>
  import mHeader from '../../../components/header'
  import {myMixin} from "./js/mixin";

  export default {
      name: "vueMixin",
      mixins:[myMixin],
      data() {
        return {}
      },
      created() {
        this.bar()
      },
      mounted(){
        console.log('vue页面')
      },
      methods: {
        bar() {
          console.log('页面调用')
        }
      },
      components: {
        mHeader
      }
    }
</script>

<style lang="scss" scoped>
.mixin{
  padding-top: 50px;
}
</style>
